using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._ClassificationandPatternRecognition
{
    /// <summary>
    /// <para>Update Accuracy Assessment Points</para>
    /// <para>Updates the Target field in the attribute table to compare reference points to the classified image.</para>
    /// <para>更新属性表中的 Target 字段，以将参考点与分类影像进行比较。</para>
    /// </summary>    
    [DisplayName("Update Accuracy Assessment Points")]
    public class UpdateAccuracyAssessmentPoints : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdateAccuracyAssessmentPoints()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_class_data">
        /// <para>Input Raster or Feature Class Data</para>
        /// <para><xdoc>
        ///   <para>The input classification image or other thematic GIS reference data. The input can be a raster or feature class.</para>
        ///   <para>Typical data is a classification image of a single band, integer data type.</para>
        ///   <para>If using polygons as input, only use those that are not used as training samples. You can also use land-cover data in shapefile or feature class format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入分类图像或其他专题 GIS 参考数据。输入可以是栅格或要素类。</para>
        ///   <para>典型数据是单个波段、整数数据类型的分类图像。</para>
        ///   <para>如果使用多边形作为输入，请仅使用未用作训练样本的多边形。您还可以使用 shapefile 或要素类格式的土地覆被数据。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_in_points">
        /// <para>Input Accuracy Assessment Points</para>
        /// <para><xdoc>
        ///   <para>The point feature class providing the accuracy assessment points to be updated.</para>
        ///   <para>All points from this input will be copied to the updated output feature class, and the Target Field will be updated from the input raster or feature class data.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>提供要更新的精度评估点的点要素类。</para>
        ///   <para>此输入中的所有点都将复制到更新的输出要素类，并且目标字段将根据输入栅格或要素类数据进行更新。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_points">
        /// <para>Output Accuracy Assessment Points</para>
        /// <para>The output point feature class which contains the updated random point field for accuracy assessment purposes.</para>
        /// <para>输出点要素类，其中包含用于精度评估的更新随机点字段。</para>
        /// </param>
        public UpdateAccuracyAssessmentPoints(object _in_class_data, object _in_points, object _out_points)
        {
            this._in_class_data = _in_class_data;
            this._in_points = _in_points;
            this._out_points = _out_points;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Update Accuracy Assessment Points";

        public override string CallName => "ia.UpdateAccuracyAssessmentPoints";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_class_data, _in_points, _out_points, _target_field.GetGPValue()];

        /// <summary>
        /// <para>Input Raster or Feature Class Data</para>
        /// <para><xdoc>
        ///   <para>The input classification image or other thematic GIS reference data. The input can be a raster or feature class.</para>
        ///   <para>Typical data is a classification image of a single band, integer data type.</para>
        ///   <para>If using polygons as input, only use those that are not used as training samples. You can also use land-cover data in shapefile or feature class format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入分类图像或其他专题 GIS 参考数据。输入可以是栅格或要素类。</para>
        ///   <para>典型数据是单个波段、整数数据类型的分类图像。</para>
        ///   <para>如果使用多边形作为输入，请仅使用未用作训练样本的多边形。您还可以使用 shapefile 或要素类格式的土地覆被数据。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Raster or Feature Class Data")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_class_data { get; set; }


        /// <summary>
        /// <para>Input Accuracy Assessment Points</para>
        /// <para><xdoc>
        ///   <para>The point feature class providing the accuracy assessment points to be updated.</para>
        ///   <para>All points from this input will be copied to the updated output feature class, and the Target Field will be updated from the input raster or feature class data.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>提供要更新的精度评估点的点要素类。</para>
        ///   <para>此输入中的所有点都将复制到更新的输出要素类，并且目标字段将根据输入栅格或要素类数据进行更新。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Accuracy Assessment Points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_points { get; set; }


        /// <summary>
        /// <para>Output Accuracy Assessment Points</para>
        /// <para>The output point feature class which contains the updated random point field for accuracy assessment purposes.</para>
        /// <para>输出点要素类，其中包含用于精度评估的更新随机点字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Accuracy Assessment Points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_points { get; set; }


        /// <summary>
        /// <para>Target Field</para>
        /// <para><xdoc>
        ///   <para>Specifies whether the input data is a classified image or ground truth data.</para>
        ///   <bulletList>
        ///     <bullet_item>Classified—The input is a classified image. This is the default.</bullet_item><para/>
        ///     <bullet_item>Ground truth—The input is reference data.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定输入数据是分类图像还是地面实况数据。</para>
        ///   <bulletList>
        ///     <bullet_item>分类 - 输入为分类影像。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>真实值 - 输入为参考数据。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _target_field_value _target_field { get; set; } = _target_field_value._CLASSIFIED;

        public enum _target_field_value
        {
            /// <summary>
            /// <para>Classified</para>
            /// <para>Classified—The input is a classified image. This is the default.</para>
            /// <para>分类 - 输入为分类影像。这是默认设置。</para>
            /// </summary>
            [Description("Classified")]
            [GPEnumValue("CLASSIFIED")]
            _CLASSIFIED,

            /// <summary>
            /// <para>Ground truth</para>
            /// <para>Ground truth—The input is reference data.</para>
            /// <para>真实值 - 输入为参考数据。</para>
            /// </summary>
            [Description("Ground truth")]
            [GPEnumValue("GROUND_TRUTH")]
            _GROUND_TRUTH,

        }

        public UpdateAccuracyAssessmentPoints SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}